package com.dartfar.dictionary.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


//数据字典键值
@Entity
@Table(name="Dict_Dictionary")
public class Dictionary implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int id;

	private String d_key = "";

	private String d_word = "";

	private Dictcatalog dictCatalog;
	

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getD_key() {
		return d_key;
	}

	public void setD_key(String d_key) {
		this.d_key = d_key;
	}

	public String getD_word() {
		return d_word;
	}

	public void setD_word(String d_word) {
		this.d_word = d_word;
	}

	@ManyToOne
	@JoinColumn(name = "dictpk")
	public Dictcatalog getDictCatalog() {
		return dictCatalog;
	}

	public void setDictCatalog(Dictcatalog dictCatalog) {
		this.dictCatalog = dictCatalog;
	}




	
}
